<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>潮汕英歌舞演出信息</title>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --primary-color: #e74c3c;
            --primary-dark: #c0392b;
            --primary-light: #ff6b6b;
            --secondary-color: #f1c40f;
            --text-color: #2c3e50;
            --text-light: #7f8c8d;
            --background-color: #fff;
            --card-background: #fff;
            --border-radius: 12px;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
            --font-size-normal: 14px;
            --font-size-large: 18px;
            --line-height-normal: 1.6;
            --line-height-large: 2;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        }

        body {
            background-color: #f5f6fa;
            color: var(--text-color);
            line-height: var(--line-height-normal);
        }

        body.elderly-mode {
            --font-size-base: var(--font-size-large);
            --line-height-base: var(--line-height-large);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 40px;
            padding: 40px 0;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }

        .header h1 {
            font-size: 2.0em;
            margin-bottom: 4px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }

        .header p {
            font-size: 1.2em;
            opacity: 0.9;
        }

        .filters {
            background: var(--card-background);
            padding: 20px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            margin-bottom: 30px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .filter-group {
            display: flex;
            flex-direction: column;
        }

        .filter-group label {
            margin-bottom: 8px;
            color: var(--text-color);
            font-weight: 500;
        }

        .filter-group select,
        .filter-group input {
            padding: 12px;
            border: 2px solid #e1e1e1;
            border-radius: var(--border-radius);
            font-size: 1em;
            transition: var(--transition);
            background-color: white;
        }

        .filter-group select:focus,
        .filter-group input:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
        }

        .activities {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

        .activity-card {
            background: var(--card-background);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 1px solid rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        .activity-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
        }

        .activity-card.highlight {
            background: linear-gradient(135deg, #fff5f5, #fff);
            border: 2px solid var(--primary-color);
        }

        .activity-card.highlight::before {
            content: '🌟';
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 24px;
            animation: sparkle 1.5s infinite;
        }

        .activity-header {
            margin-bottom: 15px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 15px;
            position: relative;
        }

        .activity-title {
            font-size: 1.2em;
            color: var(--primary-color);
            margin-right: 30px;
            font-weight: 600;
            cursor: pointer;
            position: relative;
            transition: var(--transition);
            padding-right: 30px; /* 为复制图标留出空间 */
        }

        .activity-title::after {
            content: '📋';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.8em;
            opacity: 0;
            transition: var(--transition);
        }

        .activity-title:hover::after {
            opacity: 0.7;
        }

        .activity-meta {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin: 15px 0;
        }

        .activity-meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-light);
            font-size: 0.95em;
        }

        .activity-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 15px;
        }

        .activity-tag {
            background: rgba(231, 76, 60, 0.1);
            color: var(--primary-color);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 500;
        }

        .highlight-badge {
            background: var(--primary-color);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 500;
            display: inline-block;
            margin-top: 8px;
        }

        .notice-section {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            margin-top: 40px;
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .notice-tabs {
            display: flex;
            gap: 10px;
            padding: 0 20px;
            background: #f8f9fa;
            border-bottom: 2px solid #eee;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .notice-tab {
            padding: 15px 25px;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            font-weight: 500;
            position: relative;
        }

        .notice-tab:hover {
            color: var(--primary-color);
        }

        .notice-tab.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
            /* background: white; */
        }

        .notice-content {
            display: none;
            padding: 25px;
            background: white;
        }

        .notice-content.active {
            display: block;
            animation: fadeIn 0.3s ease forwards;
        }

        .notice-item {
            margin-bottom: 20px;
            padding: 15px 20px;
            position: relative;
            background: #fff8f8;
            border-radius: 8px;
            border-left: 4px solid var(--primary-color);
            transition: transform 0.2s ease;
        }

        .notice-item:hover {
            transform: translateX(5px);
        }

        .notice-item:last-child {
            margin-bottom: 0;
        }

        .notice-item::before {
            content: '📢';
            position: absolute;
            left: -12px;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        body.elderly-mode .notice-item {
            padding: 20px 25px;
            margin-bottom: 25px;
        }

        @media (max-width: 768px) {
            .notice-section {
                margin-top: 30px;
                border-radius: var(--border-radius);
            }

            .notice-tabs {
                padding: 0 15px;
            }

            .notice-tab {
                padding: 12px 20px;
            }

            .notice-content {
                padding: 20px;
            }

            .notice-item {
                padding: 12px 15px;
                margin-bottom: 15px;
            }
        }

        .loading {
            position: relative;
            min-height: 200px;
        }

        .loading::after {
            content: '加载中...';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--text-light);
        }

        .slide-up {
            animation: slideUp 0.5s ease forwards;
            opacity: 0;
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .elderly-mode-toggle {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 10px;
            background: white;
            padding: 10px 20px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .elderly-mode-toggle:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        }

        .toggle-switch {
            position: relative;
            width: 50px;
            height: 26px;
            background: #e0e0e0;
            border-radius: 13px;
            transition: var(--transition);
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            left: 3px;
            top: 3px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: var(--transition);
        }

        body.elderly-mode .toggle-switch {
            background: var(--primary-color);
        }

        body.elderly-mode .toggle-switch::after {
            transform: translateX(24px);
        }

        .toggle-label {
            font-size: 0.95em;
            font-weight: 500;
            color: var(--text-color);
            user-select: none;
        }

        body.elderly-mode .toggle-label {
            font-size: 1.1em;
        }

        @media (max-width: 768px) {
            .elderly-mode-toggle {
                bottom: 10px;
                right: 10px;
                padding: 8px 16px;
            }
        }

        body.elderly-mode .activity-title {
            font-size: 1.4em;
        }

        body.elderly-mode .activity-meta-item,
        body.elderly-mode .activity-tag,
        body.elderly-mode .filter-group select,
        body.elderly-mode .filter-group input {
            font-size: 1.1em;
        }

        /* 复制相关的样式 */
        .copy-tooltip {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(100%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 14px;
            z-index: 1000;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .copy-tooltip.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* 适老化模式下的调整 */
        body.elderly-mode .copy-tooltip {
            font-size: 16px;
            padding: 12px 20px;
        }
    </style>
  </head>
  <body>
    <div id="app">
      <div class="container">
        <header class="header">
          <h1>潮汕英歌舞演出信息</h1>
          <p>2025年春节期间演出安排</p>
        </header>
        <div class="filters">
          <div class="filter-group">
              <label for="district">
                  📍 按区域筛选
              </label>
              <select id="district">
                  <option value="">全部区域</option>
                  <option value="濠江区">濠江区</option>
                  <option value="澄海区">澄海区</option>
                  <option value="潮阳区">潮阳区</option>
                  <option value="潮南区">潮南区</option>
                  <option value="金平区">金平区</option>
                  <option value="龙湖区">龙湖区</option>
              </select>
          </div>
          <div class="filter-group">
              <label for="date">
                  📅 按日期筛选
              </label>
              <select id="date">
                  <option value="">全部日期</option>
                  <option value="2025-01-15">1月15日（腊月十六）</option>
                  <option value="2025-01-16">1月16日（腊月十七）</option>
                  <option value="2025-01-18">1月18日（腊月十九）</option>
                  <option value="2025-01-19">1月19日（腊月二十）</option>
                  <option value="2025-01-22">1月22日（腊月二十三）</option>
                  <option value="2025-01-23">1月23日（腊月二十四）</option>
                  <option value="2025-01-24">1月24日（腊月二十五）</option>
                  <option value="2025-01-25">1月25日（腊月二十六）</option>
                  <option value="2025-01-26">1月26日（腊月二十七）</option>
                  <option value="2025-01-27">1月27日（腊月二十八）</option>
                  <option value="2025-01-29">1月29日（正月初一）</option>
                  <option value="2025-01-30">1月30日（正月初二）</option>
                  <option value="2025-01-31">1月31日（正月初三）</option>
                  <option value="2025-02-01">2月1日（正月初四）</option>
                  <option value="2025-02-02">2月2日（正月初五）</option>
                  <option value="2025-02-03">2月3日（正月初六）</option>
                  <option value="2025-02-04">2月4日（正月初七）</option>
                  <option value="2025-02-05">2月5日（正月初八）</option>
                  <option value="2025-02-06">2月6日（正月初九）</option>
                  <option value="2025-02-07">2月7日（正月初十）</option>
                  <option value="2025-02-08">2月8日（正月十一）</option>
                  <option value="2025-02-09">2月9日（正月十二）</option>
                  <option value="2025-02-10">2月10日（正月十三）</option>
                  <option value="2025-02-11">2月11日（正月十四）</option>
                  <option value="2025-02-12">2月12日（正月十五）</option>
              </select>
          </div>
          <div class="filter-group">
              <label for="search">
                  🔍 搜索演出队伍
              </label>
              <input type="text" id="search" placeholder="输入关键词搜索...">
          </div>
      </div>

        <div id="activities" class="activities">
            <!-- 活动卡片将通过JavaScript动态生成 -->
        </div>

        <div class="notice-section">
          <div class="notice-tabs">
              <div class="notice-tab active" data-tab="visitor">👥 致游客</div>
              <div class="notice-tab" data-tab="resident">🏠 致本地居民</div>
              <div class="notice-tab" data-tab="thanks">❤️ 致谢</div>
          </div>
          <div class="notice-content active" id="visitor-notice">
              <div class="notice-title">
                  <span>🎭 游客须知</span>
              </div>
              <ul class="notice-list">
                  <li>
                      <span>🙏 请尊重当地的文化与传统，不要随意乱丢垃圾</span>
                  </li>
                  <li>
                      <span>⚠️ 高峰时段请注意安全，合理规划时间，尽量避免拥挤</span>
                  </li>
              </ul>
          </div>
          <div class="notice-content" id="resident-notice">
              <div class="notice-title">
                  <span>🏘️ 居民须知</span>
              </div>
              <ul class="notice-list">
                  <li>
                      <span>🤝 请友善对待每一位远道而来的朋友</span>
                  </li>
                  <li>
                      <span>💰 切勿哄抬物价，共同维护潮汕的良好城市形象</span>
                  </li>
              </ul>
          </div>
          <div class="notice-content" id="thanks-notice">
              <div class="notice-title">
                  <span>✨ 感恩有你</span>
              </div>
              <div class="notice-footer">
                <li>
                  <span>我们一起让潮汕更美好 ❤️</span>
              </li>
                  
              </div>
          </div>
      </div>

    <div class="elderly-mode-toggle" onclick="toggleElderlyMode()">
        <span class="toggle-label">适老模式</span>
        <div class="toggle-switch"></div>
    </div>

    <script>
        // 适老化模式切换功能
        function toggleElderlyMode() {
            document.body.classList.toggle('elderly-mode');
            // 保存用户偏好
            const isElderlyMode = document.body.classList.contains('elderly-mode');
            localStorage.setItem('elderlyMode', isElderlyMode);
        }

        // 页面加载时检查并应用用户偏好
        document.addEventListener('DOMContentLoaded', function() {
            const elderlyMode = localStorage.getItem('elderlyMode');
            if (elderlyMode === 'true') {
                document.body.classList.add('elderly-mode');
            }
        });

        // 活动数据
        const activities = [
            {
                date: '2025-01-15',
                endDate: '2025-02-12',
                location: '濠江区潮汕历史文化博览中心会展馆',
                district: '濠江区',
                team: '潮玥英歌队',
                times: ['10:00-10:40', '11:00-11:40', '14:00-14:40', '15:30-16:10'],
                tags: ['传统英歌舞'],
                highlight: true,
                description: '与潮汕历史文化博览中心开放时间同步'
            },
            {
                date: '2025-01-15',
                endDate: '2025-02-12',
                location: '澄海区陈慈黉故居内广场',
                district: '澄海区',
                team: '隆安英歌队',
                times: ['10:30-10:45', '14:30-14:45'],
                tags: ['传统英歌舞'],
                highlight: false
            },
            {
                date: '2025-01-15',
                location: '潮阳区铜盂镇铜钵盂社区、肖渡村',
                district: '潮阳区',
                team: '潇湘乡英歌队',
                times: ['7:00-11:00', '14:30-17:30'],
                tags: ['社区巡演'],
                highlight: false
            },
            {
                date: '2025-01-16',
                location: '潮阳区铜盂镇肖渡村潇湘公园广场',
                district: '潮阳区',
                team: '潇湘乡英歌队',
                times: ['8:00-11:00'],
                tags: ['公园广场演出'],
                highlight: false
            },
            {
                date: '2025-01-18',
                location: '潮阳区铜盂镇铜钵盂社区、肖渡村',
                district: '潮阳区',
                team: '潇湘乡英歌队',
                times: ['7:00-11:00'],
                tags: ['社区巡演'],
                highlight: false
            },
            {
                date: '2025-01-18',
                location: '潮阳区潮汕风文化主题花园',
                district: '潮阳区',
                team: '口美英歌队',
                times: ['14:00-15:30'],
                tags: ['主题园区演出'],
                highlight: false
            },
            {
                date: '2025-01-19',
                location: '潮南区峡山街道洋内社区',
                district: '潮南区',
                team: ['五和轩英歌队', '铜钵盂英歌队'],
                times: ['8:00-16:00'],
                tags: ['联合演出', '社区演出'],
                highlight: false
            },
            {
                date: '2025-01-22',
                location: '潮南区峡山街道洋内社区',
                district: '潮南区',
                team: ['五和轩英歌队', '铜钵盂英歌队'],
                times: ['8:00-12:00'],
                tags: ['联合演出', '社区演出'],
                highlight: false
            },
            {
                date: '2025-01-23',
                location: '潮阳区城南公园赤产天后古庙，潮阳区东山双忠祖庙',
                district: '潮阳区',
                team: '潮阳赤产英歌队',
                times: ['8:00-20:00'],
                tags: ['传统庙会'],
                highlight: false
            },
            {
                date: '2025-01-23',
                location: '潮阳区棉城周厝庵及教授巷口',
                district: '潮阳区',
                team: '岭东英歌队',
                times: ['9:00-14:30'],
                tags: ['社区巡演'],
                highlight: false
            },
            {
                date: '2025-01-23',
                location: '潮阳区城南公园',
                district: '潮阳区',
                team: ['城南街道忠精英歌队', '龙井行祠庙忠精英歌队'],
                times: ['17:00-18:00'],
                tags: ['联合演出'],
                highlight: false
            },
            {
                date: '2025-01-23',
                location: '潮阳区城南街道辖区',
                district: '潮阳区',
                team: '湖阳龙井双树英歌队',
                times: ['8:00-15:00'],
                tags: ['社区巡演'],
                highlight: false
            },
            {
                date: '2025-01-23',
                location: '潮阳区城南街道辖区',
                district: '潮阳区',
                team: '兴德胜英歌队',
                times: ['6:00-17:00'],
                tags: ['社区巡演'],
                highlight: false
            },
            {
                date: '2025-01-24',
                location: '潮阳区文光街道桃园社区',
                district: '潮阳区',
                team: '桃园英歌队',
                times: ['7:00-10:00'],
                tags: ['社区演出'],
                highlight: false
            },
            {
                date: '2025-01-25',
                location: '潮阳区文光街道平东社区百寿',
                district: '潮阳区',
                team: '慈济英歌队',
                times: ['9:00'],
                tags: ['社区演出'],
                highlight: false
            },
            {
                date: '2025-01-25',
                location: '金平区广东绿梦欢乐世界',
                district: '金平区',
                team: '富美英歌队',
                times: ['11:00-12:00', '16:00-17:00', '20:00-21:00'],
                tags: ['主题乐园演出'],
                highlight: false
            },
            {
                date: '2025-01-25',
                location: '潮阳区潮汕风文化主题花园',
                district: '潮阳区',
                team: '口美英歌队',
                times: ['14:00-15:30'],
                tags: ['主题园区演出'],
                highlight: false
            },
            {
                date: '2025-01-26',
                location: '金平区广东绿梦欢乐世界',
                district: '金平区',
                team: '富美英歌队',
                times: ['11:00-12:00', '16:00-17:00', '20:00-21:00'],
                tags: ['主题乐园演出'],
                highlight: false
            },
            {
                date: '2025-01-27',
                location: '濠江区广澳街道埭头社区',
                district: '濠江区',
                team: '埭头英歌队',
                times: ['7:30-9:30'],
                tags: ['社区演出'],
                highlight: false
            },
            {
                date: '2025-01-27',
                location: '金平区广东绿梦欢乐世界',
                district: '金平区',
                team: '富美英歌队',
                times: ['11:00-12:00', '16:00-17:00', '20:10-21:00'],
                tags: ['主题乐园演出'],
                highlight: false
            },
            {
                date: '2025-01-29',
                endDate: '2025-02-02',
                location: '濠江区中海黄金海岸',
                district: '濠江区',
                team: '普宁英歌队',
                times: ['10:00-12:30', '14:00-16:30'],
                tags: ['新春特演'],
                highlight: true,
                description: '新春五天连续演出'
            },
            {
                date: '2025-01-29',
                endDate: '2025-02-04',
                location: '濠江区丹樱生态园',
                district: '濠江区',
                team: '岗背英歌队',
                times: ['9:30-10:30', '12:30-13:30', '14:30-15:30', '16:30-17:30'],
                tags: ['新春特演'],
                highlight: true,
                description: '生态园新春系列演出'
            },
            {
                date: '2025-01-29',
                endDate: '2025-02-11',
                location: '金平区广东绿梦欢乐世界',
                district: '金平区',
                team: '富美英歌队',
                times: ['11:00-12:00', '16:00-17:00', '20:00-21:00'],
                tags: ['新春特演'],
                highlight: true,
                description: '欢乐世界新春系列演出'
            },
            {
                date: '2025-01-29',
                location: '潮阳区文光街道桃园社区',
                district: '潮阳区',
                team: '桃园英歌队',
                times: ['7:00-10:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '龙湖区外砂街道林厝村',
                district: '龙湖区',
                team: '潮阳凤仪英歌队',
                times: ['8:00-12:30'],
                tags: ['新春演出', '乡村演出'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '潮阳区城南街道辖区',
                district: '潮阳区',
                team: '潮阳龙井双树英散队',
                times: ['8:00-15:00'],
                tags: ['新春演出', '社区巡演'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '潮阳区棉北街道平北文化广场',
                district: '潮阳区',
                team: ['后溪英歌队', '后溪女子英歌队'],
                times: ['8:30-11:00'],
                tags: ['新春演出', '联合演出'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '龙湖区龙祥街道泰龙社区',
                district: '龙湖区',
                team: '潮阳金浦英歌队',
                times: ['8:30-12:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '潮阳区城南公园',
                district: '潮阳区',
                team: '城南街道忠精英歇队',
                times: ['9:00-9:30'],
                tags: ['新春演出', '公园演出'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '潮阳区海门镇城区',
                district: '潮阳区',
                team: '和睦英歌队',
                times: ['9:00-11:00', '14:30-17:30'],
                tags: ['新春演出', '城区巡演'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '潮阳区西胪镇西二社区',
                district: '潮阳区',
                team: '西二英歌队',
                times: ['9:00-11:30', '13:30-16:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '金平区西陇社区文体广场',
                district: '金平区',
                team: '金平英歌队',
                times: ['9:00-12:00'],
                tags: ['新春演出', '广场演出'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '澄海区东里镇辖区内',
                district: '澄海区',
                team: '樟东英歌队',
                times: ['10:00'],
                tags: ['新春演出', '社区巡演'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '潮阳区文光塔广场',
                district: '潮阳区',
                team: '龙威英歌队',
                times: ['10:00-11:00'],
                tags: ['新春演出', '广场演出'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '南澳县文化广场',
                district: '南澳县',
                team: ['南澳商会英歌舞', '新乡村英歌舞'],
                times: ['10:00-12:00'],
                tags: ['新春演出', '联合演出', '广场演出'],
                highlight: true
            },
            {
                date: '2025-01-29',
                location: '龙湖区政府大楼前广场',
                district: '龙湖区',
                team: '金興英歌队',
                times: ['14:00-16:00'],
                tags: ['新春演出', '广场演出'],
                highlight: true
            },
            {
                date: '2025-01-30',
                location: '龙湖区珠池街道南山社区',
                district: '龙湖区',
                team: '泥沟英歌队',
                times: ['7:00-11:00', '14:30-17:30'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-01-30',
                location: '金平区舵莲街道莲塘片区',
                district: '金平区',
                team: '金浦得胜利英歌队',
                times: ['8:00-11:30', '13:30-17:00'],
                tags: ['新春演出', '社区巡演'],
                highlight: true
            },
            {
                date: '2025-01-30',
                location: '潮阳区文光街道西门社区居委',
                district: '潮阳区',
                team: '西门女子英歌队',
                times: ['9:00-10:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-01-31',
                location: '潮南区陇田镇东仙社区东里古寨',
                district: '潮南区',
                team: ['西岐英歌队', '神仙里英歌队'],
                times: ['15:30-20:00'],
                tags: ['新春演出', '联合演出', '古寨演出'],
                highlight: true
            },
            {
                date: '2025-02-01',
                location: '潮阳区棉北街道白竹社区',
                district: '潮阳区',
                team: '白竹英歌队',
                times: ['8:00-11:30'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-01',
                location: '潮阳区城南公园赤产天后古庙、潮阳区东山双忠祖庙',
                district: '潮阳区',
                team: '潮阳赤产英歌队',
                times: ['8:00-20:00'],
                tags: ['新春演出', '传统庙会'],
                highlight: true
            },
            {
                date: '2025-02-01',
                location: '潮阳区城南街道辖区',
                district: '潮阳区',
                team: '潮阳区龙井双树英歌队',
                times: ['12:00-20:00'],
                tags: ['新春演出', '社区巡演'],
                highlight: true
            },
            {
                date: '2025-02-01',
                location: '潮阳区潮汕风文化主题花园',
                district: '潮阳区',
                team: '口美英歌队',
                times: ['14:00-15:30'],
                tags: ['新春演出', '主题园区演出'],
                highlight: true
            },
            {
                date: '2025-02-01',
                location: '潮阳区文光街道文光社区',
                district: '潮阳区',
                team: '南桂坊英歌队',
                times: ['14:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-01',
                location: '潮阳区城南街道城南公园',
                district: '潮阳区',
                team: ['城南忠精英歌队', '龙井行祠庙忠精英歌队'],
                times: ['16:00-18:00'],
                tags: ['新春演出', '联合演出', '公园演出'],
                highlight: true
            },
            {
                date: '2025-02-01',
                location: '潮南区陇田镇东仙社区东里古寨',
                district: '潮南区',
                team: ['西岐英歌队', '神仙里英歌队'],
                times: ['16:20-20:00'],
                tags: ['新春演出', '联合演出', '古寨演出'],
                highlight: true
            },
            {
                date: '2025-02-02',
                location: '潮阳区文光街道平东社区百寿亭',
                district: '潮阳区',
                team: '慈济英歌队',
                times: ['09:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-02',
                location: '潮阳区钢盂镇风田村',
                district: '潮阳区',
                team: '风田村英歌队',
                times: ['9:00-11:30'],
                tags: ['新春演出', '乡村演出'],
                highlight: true
            },
            {
                date: '2025-02-02',
                location: '潮阳区文光塔广场及部分城区主干道',
                district: '潮阳区',
                team: '潮阳16支英歌队',
                times: ['9:00-12:00'],
                tags: ['新春演出', '大型联合演出', '城区巡演'],
                highlight: true,
                description: '16支英歌队联合巡演'
            },
            {
                date: '2025-02-02',
                location: '潮阳区海门镇城区',
                district: '潮阳区',
                team: '海兴英歌队',
                times: ['9:00-11:00', '14:30-17:30'],
                tags: ['新春演出', '城区巡演'],
                highlight: true
            },
            {
                date: '2025-02-03',
                location: '潮阳区棉城内',
                district: '潮阳区',
                team: '南桂坊英歌队',
                times: ['全天'],
                tags: ['新春演出', '城区巡演'],
                highlight: true
            },
            {
                date: '2025-02-03',
                location: '潮阳区城南街道凤上、凤南、凤东、凤北社区',
                district: '潮阳区',
                team: '凤岗英歌队',
                times: ['07:00-15:00'],
                tags: ['新春演出', '社区巡演'],
                highlight: true
            },
            {
                date: '2025-02-03',
                location: '潮阳区棉北街道后溪片区',
                district: '潮阳区',
                team: ['后溪英歌队', '后溪女子英歌队'],
                times: ['07:00-16:00'],
                tags: ['新春演出', '联合演出', '社区巡演'],
                highlight: true
            },
            {
                date: '2025-02-03',
                location: '潮阳区海门镇内',
                district: '潮阳区',
                team: '和睦英歌队',
                times: ['08:00-17:00'],
                tags: ['新春演出', '城区巡演'],
                highlight: true
            },
            {
                date: '2025-02-03',
                location: '濠江区滨海街道华新社区',
                district: '濠江区',
                team: '华新英歌队',
                times: ['09:00-17:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-03',
                location: '濠江区滨海街道里前社区',
                district: '濠江区',
                team: '里前英歌队',
                times: ['09:30-17:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-03',
                location: '濠江区玉新街道岗背社区魏征纪念馆',
                district: '濠江区',
                team: '濠江本土英歌队',
                times: ['10:00-11:00'],
                tags: ['新春演出', '文化场所演出'],
                highlight: true
            },
            {
                date: '2025-02-04',
                location: '潮阳区城南街道凤上、风南、凤东、凤北社区',
                district: '潮阳区',
                team: '凤岗英歌队',
                times: ['07:00-18:00'],
                tags: ['新春演出', '社区巡演'],
                highlight: true
            },
            {
                date: '2025-02-04',
                location: '潮阳区西胪镇泉塘村',
                district: '潮阳区',
                team: '泉塘村青少年英歌队',
                times: ['09:00-17:00'],
                tags: ['新春演出', '青少年专场', '乡村演出'],
                highlight: true
            },
            {
                date: '2025-02-04',
                location: '潮阳区海门镇城区',
                district: '潮阳区',
                team: '慈海英歌队',
                times: ['09:00-11:00', '14:30-17:30'],
                tags: ['新春演出', '城区巡演'],
                highlight: true
            },
            {
                date: '2025-02-05',
                location: '潮阳区城南街道凤上、凤南、凤东、凤北社区',
                district: '潮阳区',
                team: '凤岗英歌队',
                times: ['07:00-18:00'],
                tags: ['新春演出', '社区巡演'],
                highlight: true
            },
            {
                date: '2025-02-05',
                location: '濠江区滨海街道华新社区',
                district: '濠江区',
                team: '华新英歌队',
                times: ['19:00-23:00'],
                tags: ['新春演出', '夜间专场'],
                highlight: true
            },
            {
                date: '2025-02-06',
                location: '潮阳区西胪镇泉塘村',
                district: '潮阳区',
                team: '泉塘村青少年英歌队',
                times: ['09:00-17:00'],
                tags: ['新春演出', '青少年专场', '乡村演出'],
                highlight: true
            },
            {
                date: '2025-02-07',
                location: '濠江区广澳街道三遼社区、河菠社区',
                district: '濠江区',
                team: '三遼英歌队',
                times: ['07:00-16:00'],
                tags: ['新春演出', '社区巡演'],
                highlight: true
            },
            {
                date: '2025-02-07',
                location: '潮阳区河溪镇西田村',
                district: '潮阳区',
                team: '塔馆英歌队',
                times: ['09:00-11:00', '14:30-16:30'],
                tags: ['新春演出', '乡村演出'],
                highlight: true
            },
            {
                date: '2025-02-07',
                location: '潮阳区文光街道古帅社区',
                district: '潮阳区',
                team: '古帅英歌队',
                times: ['08:00-11:30'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-07',
                location: '濠江区滨海街道上头社区',
                district: '濠江区',
                team: '上头英歌队',
                times: ['08:00-17:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-08',
                location: '潮阳区文光街道古帅社区',
                district: '潮阳区',
                team: '古帅英歌队',
                times: ['08:00-17:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-08',
                location: '潮阳区西胪镇南凤村',
                district: '潮阳区',
                team: '南凤英歌队',
                times: ['08:30-11:30', '14:00-16:30'],
                tags: ['新春演出', '乡村演出'],
                highlight: true
            },
            {
                date: '2025-02-08',
                location: '濠江区广澳街道三遼社区、河瀍社区',
                district: '濠江区',
                team: '三遼英歌队',
                times: ['09:00-10:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-08',
                location: '潮阳区河溪镇西田村',
                district: '潮阳区',
                team: '塔馆英歌队',
                times: ['09:00-11:00', '14:30-16:30'],
                tags: ['新春演出', '乡村演出'],
                highlight: true
            },
            {
                date: '2025-02-08',
                location: '龙湖区新津街道东新社区辖区内',
                district: '龙湖区',
                team: '流沙英歌队',
                times: ['13:00-16:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-08',
                location: '潮阳区潮汕风文化主題花园',
                district: '潮阳区',
                team: '口美英歌队',
                times: ['14:00-15:30'],
                tags: ['新春演出', '主题园区演出'],
                highlight: true
            },
            {
                date: '2025-02-09',
                location: '潮南区胪岗镇上厝社区',
                district: '潮南区',
                team: '上厝英歌队',
                times: ['09:00-12:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-09',
                location: '龙湖区新津街道金龙社区',
                district: '龙湖区',
                team: '泥沟英歌队',
                times: ['09:30-11:00', '14:30-17:00'],
                tags: ['新春演出', '社区演出'],
                highlight: true
            },
            {
                date: '2025-02-10',
                location: '潮阳区铜盂镇洋美村',
                district: '潮阳区',
                team: '洋美村英歌队',
                times: ['09:00-11:30'],
                tags: ['新春演出', '乡村演出'],
                highlight: true
            },
            {
                date: '2025-02-11',
                location: '潮阳区铜盂镇凤田村',
                district: '潮阳区',
                team: '凤田村英歌队',
                times: ['15:00-19:30'],
                tags: ['新春演出', '乡村演出'],
                highlight: true
            },
            {
                date: '2025-02-12',
                location: '潮阳区金浦街道梅西村',
                district: '潮阳区',
                team: '梅西上园英歇队',
                times: ['06:30-15:00'],
                tags: ['新春演出', '乡村演出', '元宵节专场'],
                highlight: true
            },
            {
                date: '2025-02-12',
                location: '潮阳区棉北街道五三社区',
                district: '潮阳区',
                team: '五三英歌队',
                times: ['08:00-11:30'],
                tags: ['新春演出', '社区演出', '元宵节专场'],
                highlight: true
            },
            {
                date: '2025-02-12',
                location: '潮南区胪岗镇新中、新联、新民村',
                district: '潮南区',
                team: '港头英歌队',
                times: ['09:00-12:00', '14:30-17:00'],
                tags: ['新春演出', '乡村巡演', '元宵节专场'],
                highlight: true,
                description: '上午新中、新联，下午新民'
            },
            {
                date: '2025-02-12',
                location: '潮阳区西胪镇岩前村',
                district: '潮阳区',
                team: '岩前英歌队',
                times: ['09:00-11:30', '13:30-16:00'],
                tags: ['新春演出', '乡村演出', '元宵节专场'],
                highlight: true
            },
            {
                date: '2025-02-12',
                location: '潮阳区铜盂镇市上村',
                district: '潮阳区',
                team: '市心多英歌队',
                times: ['13:00-17:30'],
                tags: ['新春演出', '乡村演出', '元宵节专场'],
                highlight: true
            },
            {
                date: '2025-02-12',
                location: '潮阳区铜盂镇溪东村东上、东下',
                district: '潮阳区',
                team: ['溪东里乡英歌队', '东华英歌队'],
                times: ['15:00-19:30'],
                tags: ['新春演出', '联合演出', '乡村演出', '元宵节专场'],
                highlight: true
            }
        ];

        // 复制文本功能
        function copyText(text) {
            // 创建临时输入框
            const input = document.createElement('textarea');
            input.value = text;
            document.body.appendChild(input);
            input.select();
            
            try {
                // 执行复制
                document.execCommand('copy');
                showTooltip('复制成功！');
            } catch (err) {
                showTooltip('复制失败，请手动复制');
            }
            
            // 清理临时输入框
            document.body.removeChild(input);
        }

        // 显示提示框
        function showTooltip(message) {
            // 检查是否已存在提示框
            let tooltip = document.querySelector('.copy-tooltip');
            
            // 如果不存在则创建
            if (!tooltip) {
                tooltip = document.createElement('div');
                tooltip.className = 'copy-tooltip';
                document.body.appendChild(tooltip);
            }
            
            // 更新消息并显示
            tooltip.textContent = message;
            tooltip.classList.add('show');
            
            // 2秒后隐藏
            setTimeout(() => {
                tooltip.classList.remove('show');
            }, 2000);
        }

        // 为活动卡片添加点击复制功能
        function addCopyListeners() {
            document.querySelectorAll('h2.activity-title').forEach(title => {
                title.addEventListener('click', function() {
                    // 直接复制标题文本
                    copyText(this.textContent.trim());
                });
            });
        }

        // 筛选和搜索功能
        function filterActivities() {
            const searchInput = document.getElementById('search').value.toLowerCase().trim();
            const districtFilter = document.getElementById('district').value;
            const dateFilter = document.getElementById('date').value;

            // 分割搜索关键词，支持多个关键词搜索
            const searchTerms = searchInput.split(/\s+/).filter(term => term.length > 0);

            const filteredActivities = activities.filter(activity => {
                // 地区筛选
                if (districtFilter && activity.district !== districtFilter) return false;
                
                // 日期筛选
                if (dateFilter && activity.date !== dateFilter) return false;

                // 如果没有搜索关键词，直接返回true
                if (searchTerms.length === 0) return true;

                // 搜索逻辑改进：检查所有关键词是否都匹配
                return searchTerms.every(term => {
                    // 在多个字段中搜索
                    const searchableFields = [
                        activity.team,
                        activity.location,
                        activity.district,
                        ...(activity.tags || []),
                        activity.date,
                        activity.times
                    ].map(field => (field || '').toString().toLowerCase());

                    // 任何字段包含关键词即视为匹配
                    return searchableFields.some(field => field.includes(term));
                });
            });

            // 更新显示
            const activitiesContainer = document.getElementById('activities');
            activitiesContainer.innerHTML = '';

            if (filteredActivities.length === 0) {
                activitiesContainer.innerHTML = `
                    <div class="no-results">
                        <p>未找到符合条件的活动</p>
                        <p>请尝试调整搜索条件</p>
                    </div>`;
                return;
            }

            filteredActivities.forEach(activity => {
                const activityCard = document.createElement('div');
                activityCard.className = `activity-card${activity.highlight ? ' highlight' : ''}`;
                
                activityCard.innerHTML = `
                    <div class="activity-header">
                        <h2 class="activity-title">${activity.location}</h2>
                        ${activity.highlight ? '<span class="highlight-badge">🌟 特别活动</span>' : ''}
                    </div>
                    <div class="activity-meta">
                        <div class="activity-meta-item">
                            📅 ${activity.date}
                        </div>
                        <div class="activity-meta-item">
                            📍 ${activity.district}
                        </div>
                        <div class="activity-meta-item">
                            👥 ${Array.isArray(activity.team) ? activity.team.join('、') : activity.team}
                        </div>
                        ${activity.times ? `<div class="activity-meta-item">⏰ ${activity.times.join(' / ')}</div>` : ''}
                    </div>
                    ${activity.description ? `<p>${activity.description}</p>` : ''}
                    <div class="activity-tags">
                        ${(activity.tags || []).map(tag => `<span class="activity-tag">${tag}</span>`).join('')}
                    </div>
                `;
                
                activitiesContainer.appendChild(activityCard);
            });

            // 为新生成的卡片添加复制功能
            addCopyListeners();
        }

        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            // 初始化筛选器事件监听
            document.getElementById('search').addEventListener('input', filterActivities);
            document.getElementById('district').addEventListener('change', filterActivities);
            document.getElementById('date').addEventListener('change', filterActivities);

            // 标签切换功能
            const tabs = document.querySelectorAll('.notice-tab');
            const contents = document.querySelectorAll('.notice-content');

            tabs.forEach(tab => {
                tab.addEventListener('click', () => {
                    // 移除所有标签和内容的激活状态
                    tabs.forEach(t => t.classList.remove('active'));
                    contents.forEach(c => c.classList.remove('active'));

                    // 激活当前点击的标签和对应的内容
                    tab.classList.add('active');
                    const targetId = `${tab.getAttribute('data-tab')}-notice`;
                    document.getElementById(targetId).classList.add('active');
                });
            });

            // 检查并应用用户的适老化模式偏好
            const elderlyMode = localStorage.getItem('elderlyMode');
            if (elderlyMode === 'true') {
                document.body.classList.add('elderly-mode');
            }

            // 初始加载活动列表
            filterActivities();
        });
    </script>
  </div>
</body>
</html>
